import type { AppRouteModule } from '/@/router/types';

import { HOME_LAYOUT } from '/@/router/constant';
import { t } from '/@/hooks/web/useI18n';
const IFrame = () => import('/@/views/sys/iframe/FrameBlank.vue');
const route: AppRouteModule = {
  path: '/home-index',
  name: 'HomeIndex',
  component: HOME_LAYOUT,
  redirect: '/home-index/start',
  meta: {
    orderNo: 0,
    icon: 'tabler:chart-dots',
    title: t('routes.home.index.start'),
  },
  children: [
    {
      path: 'start',
      name: 'HomeIndexStart',
      component: () => import('/A/home/views/index/start.vue'),
      meta: {
        title: t('routes.home.index.start'),
        // hideMenu: true,
      },
    },
    {
      path: '/#/backend-source',
      name: 'HomeIndexBackend',
      component: IFrame,
      meta: {
        title: t('routes.home.index.backend'),
      },
    },
    {
      path: '/#/pages/index/warning-publish',
      name: 'HomeWarningPublish',
      component: IFrame,
      meta: {
        title: t('routes.home.index.warningPublish'),
      },
    },
  ],
};

export default route;
